package com.gxuwz.bignews.controller;

import android.content.Context;
import com.gxuwz.bignews.model.db.UserDao;

public class ForgotPasswordController {
    private UserDao userDao;

    public ForgotPasswordController(Context context) {
        userDao = new UserDao(context);
    }

    public boolean isPhoneRegistered(String phone) {
        return userDao.isPhoneRegistered(phone);
    }

    public boolean resetPassword(String phone, String newPassword) {
        return userDao.updatePassword(phone, newPassword);
    }
} 